﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PropertyManageMenu.master" AutoEventWireup="true"
    CodeBehind="AnnouncementManage.aspx.cs" Inherits="RealtyManagementSystem.Web.RealtyManagers.AnnouncementManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="menuHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="AnnounceId" DataSourceID="EntityDataSource1"
        ForeColor="#333333" CssClass="notice_gird_style" Width="100%">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="AnnounceId" HeaderText="公告编号" ReadOnly="True" SortExpression="AnnounceId" />
            <asp:BoundField DataField="Title" HeaderText="标题" SortExpression="Title" ItemStyle-CssClass="notice_title_sytle"
                ItemStyle-BorderStyle="Solid" ItemStyle-BorderColor="#A5A5A5" />
            <asp:BoundField DataField="CreateDate" HeaderText="创建日期" SortExpression="CreateDate"
                DataFormatString="{0:yyyy/MM/dd}" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <a href='/Common/AnnouncementPreview.aspx?announceId=<%#Eval("AnnounceId") %>'>查看
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=realtydbEntities"
        DefaultContainerName="realtydbEntities" EnableDelete="True" EnableFlattening="False"
        EnableInsert="True" EnableUpdate="True" EntitySetName="Announcements" EntityTypeFilter="Announcement"
        Include="aspnet_Users">
    </asp:EntityDataSource>
</asp:Content>